﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Mappings;

namespace Apollo
{
    [NHibernateEntity(Table = "apl_Languages")]
    public class Language
    {
        public Language() { }

        [PrimaryKey]
        public virtual int Id { get; set; }

        [Property]
        public virtual string Name { get; set; }

        [Property]
        public virtual string Culture { get; set; }

        [Property]
        public virtual string IconPath { get; set; }

        [Property]
        public virtual bool IsDefault { get; set; }

        [BelongsTo(Column = "ID_Currency")]
        public virtual Currency Currency { get; set; }

        [Property]
        public virtual string DateTimeFormat { get; set; }

        [Property]
        public virtual string IntFormat { get; set; }

        [Property]
        public virtual string DecimalFormat { get; set; }

        [Property]
        public virtual string IntGridFormat { get; set; }

        [Property]
        public virtual string DecimalGridFormat { get; set; }
    }
}
